﻿using SIG.Resources.Admin;
using System.ComponentModel.DataAnnotations;

namespace SIG.InputModel.Admin.FQAs
{
    public class QuestionIM
    {
        public int Id { get; set; }
        [Display(ResourceType = typeof(Labels), Name = "Question")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public string Title { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Answer")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]      
        public string Answer { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Importance")]
        public int Importance { get; set; }

        [Display(ResourceType = typeof(Labels), Name = "Category")]
        [Required(ErrorMessageResourceType = typeof(Validations), ErrorMessageResourceName = "Required")]
        public int CategoryId { get; set; }

    
        [Display(ResourceType = typeof(Labels), Name = "Active")]
        public bool Active { get; set; }


    }
}
